<?php
  class attributes extends CI_Controller{
      public function getbydimension($idDimension = ''){
          $this->load->library('tabletojson');
          
          echo json_encode($this->tabletojson->GetByField('sys_attributes', Array("idDimension" => $idDimension)));
      }
  }
?>
